# Contributor: Taner Tas <taner76@gmail.com>
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=qstardict
pkgver=1.3
pkgrel=0
pkgdesc="Free dictionary program written using Qt."
url="https://qstardict.ylsoftware.com"
arch="all"
license="GPL-2.0-only"
makedepends="qt5-qttools-dev"
subpackages="$pkgname-doc"
source="https://github.com/a-rodin/qstardict/archive/qstardict-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"

build() {
	qmake-qt5 ENABLED_PLUGINS="stardict swac web"
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install
}

sha512sums="eda89367c7c7cbc944e7f40c5236178f5298c6973dffd24a4c5fa3e114d0e14e670d1103a13acdf46eb9b7fd563278f3ec1e76abfbe3de5211300616ab77e28f  qstardict-1.3.tar.gz"
